---@class BuffEffect92032100 : BaseBuffEffect
BuffEffect92032100 = ClientFight.CreateClass("BuffEffect92032100", ClientFight.BaseBuffEffect)
local t = BuffEffect92032100

---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local parameters = {...};
    local summonsCreater = buff.target.summonsCreater;
    if (summonsCreater == buff.target) then
        return IBuffEffect.FAIL;
    end
    SkillRoleMgr.savePathFile(string.format("[%s][EFFECT]Fighter %s Buff%s 剩余生命为%s, 全部转化给主人id: %s",
            fight.frame, buff.target.fighterId, buff.modelId, buff.target.hp, summonsCreater.fighterId));
    DamageManager.setFighterHp(fight, summonsCreater, buff.target, nil, DamageResultTypeEnum.HEAL,
            buff.target.hp, summonsCreater.hp + buff.target.hp, false, false, true);
    return ClientFight.BaseBuffEffect.action(self, fight, buff, ...);
end

t.New()